package com.moss.cloud.base.api.model.from;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
@Data
public class UpdatePasswordFrom implements Serializable {
    /**旧密码*/
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;
    /**新密码*/
    @NotBlank(message = "新密码不能为空")
    private String newPassword;
    /**确认密码*/
    @NotBlank(message = "确认密码不能为空")
    @Size(max = 100,message = "密码最大不能超过32位")
    private String confirmPassword;
}
